<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of con_modulo
 *
 * @author Luisao
 */
class con_modulo extends CI_Model {
    //put your code here
    
    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
    
    function get_all()
    {
        $this->db->select();
        $query = $this->db->get('con_modulo');
        return $query;
    }  
    
    function get_modulo($id_modulo){        
        $this->db->where('ID_MODULO',$id_modulo);
        $query = $this->db->get('contab.con_modulo');
        $count = $query->num_rows();
        $row = $query->row(0, 'con_modulo');
        return $row;        
    }
    
}

?>
